import request from '@/utils/request'

// 查询烈士遗属信息采集列表
export function listFamily_of_martyr(query) {
  return request({
    url: '/archive_info/family_of_martyr/list',
    method: 'get',
    params: query
  })
}

// 查询烈士遗属信息采集详细
export function getFamily_of_martyr(id) {
  return request({
    url: '/archive_info/family_of_martyr/' + id,
    method: 'get'
  })
}

// 新增烈士遗属信息采集
export function addFamily_of_martyr(data) {
  return request({
    url: '/archive_info/family_of_martyr',
    method: 'post',
    data: data
  })
}

// 修改烈士遗属信息采集
export function updateFamily_of_martyr(data) {
  return request({
    url: '/archive_info/family_of_martyr',
    method: 'put',
    data: data
  })
}

// 删除烈士遗属信息采集
export function delFamily_of_martyr(id) {
  return request({
    url: '/archive_info/family_of_martyr/' + id,
    method: 'delete'
  })
}

// 导出烈士遗属信息采集
export function exportFamily_of_martyr(query) {
  return request({
    url: '/archive_info/family_of_martyr/export',
    method: 'get',
    params: query
  })
}